package com.gw.business.common.util.excel;

import java.util.LinkedHashMap;
import java.util.Map;




public class ConditionCollection {

    public static final String 
        SPLIT_POINT = "/.", STR_POINT = ".", SPLIT_LT = "<",
        SPLIT_GT = ">", PREFIX_GET = "get",
        ENCODING_ISO_8859_1 = "ISO-8859-1", FILE_EXCEL_SUFFIX = ".xls",
        FORMATTER_DATETIME = "yyyy-MM-dd HH:mm:ss",
        FORMATTER_DATE = "yyyy-MM-dd";
    /**
     * 用户详情导出
     * @return
     */
	public static final Map<String, String> getCommuDetailTHFieldMap(String flag) {
		Map<String, String> thF = new LinkedHashMap<String, String>();
		thF.put("userId", "用户");
		if(null!=flag){
		    thF.put("ip", "IP");
		}
		thF.put("startTime", "访问时间");
		thF.put("timeLength", "时长");
		thF.put("behaviorTemp", "行为");
		thF.put("utmcsr", "来源");
		thF.put("utmcmd", "媒介");
		thF.put("utmccn", "系列");
		thF.put("utmcct", "组");
		
		thF.put("utmctr", "关键字");
		thF.put("browserCount", "页面浏览数");
		return thF;
	}
      /**
       * 用戶行为开户导出
       * @param flag
       * @return
       */
	   public static final Map<String, String> getUserBehavorDetailTHFieldMap(String flag) {
       Map<String, String> thF = new LinkedHashMap<String, String>();
       thF.put("formatDataTime", "日期");
       thF.put("utmcmd", "媒介");
       if(flag.equals("1")){
       thF.put("demoCount", "开户数");
       }else if(flag.equals("2")){
           thF.put("realCount", "开户数");
       }else {
           thF.put("depositCount", "入金数");
       }
      thF.put("avgNum", "上月平均数");
      
       return thF;
   }
	   /**
	    * 用户行为统计
	    * @return
	    */
	public static final Map<String, String> getUserBehavorStaticTHFieldMap() {
	  Map<String, String> thF = new LinkedHashMap<String, String>();
	  thF.put("formatDataTime", "日期");
	  thF.put("visitCount", "访问次数");
	  thF.put("advisoryCount", "咨询次数");
	  thF.put("demoCount", "模拟开户总数");
	  thF.put("realCount", "真实开户总数");
	  thF.put("depositCount", "首次入金总数");
	   return thF;
	   }
	
    /**
     * 异常信息导出
     * @return
     */
    public static final Map<String, String> getCommuExceptionTHFieldMap(String flag) {
        Map<String, String> thF = new LinkedHashMap<String, String>();
        thF.put("formatDataTime", "时间");
        thF.put("userId", "用户");
        thF.put("ip", "IP");
        if(flag.equals("1")){
        thF.put("urlCount", "访问页面数");
        }else {
            thF.put("url", "URL");
        }
        return thF;
    }
    /**
     * 来源媒介效果导出
     * @return
     */
 public static final Map<String, String> getAttributionTHFieldMap() {
   Map<String, String> thF = new LinkedHashMap<String, String>();
   thF.put("dataTime", "日期");
   thF.put("utmcsr", "来源");
   thF.put("utmcmd", "媒介");
   thF.put("demoCount", "模拟开户数");
   thF.put("realCount", "真实开户数");
   return thF;
    }
     /**
      * 来源媒介统计导出
      * @return
      */
    public static final Map<String, String> getAttributionStatiscTHFieldMap() {
    Map<String, String> thF = new LinkedHashMap<String, String>();
    thF.put("dataTime", "日期");
    thF.put("utmcsr", "来源");
    thF.put("utmcmd", "媒介");
    thF.put("visitCount", "访问总数");
    thF.put("advisoryCount", "咨询总数");
    thF.put("advisoryCount", "咨询总数");
    thF.put("demoCount", "模拟开户总数");
    thF.put("realCount", "真实开户总数");
    thF.put("depositCount", "首次入金总数");
    return thF;
     }
}
